import Vue from 'vue'
import App from './App'
import http from './common/vmeitime-http/interface'
import cuCustom from '@/components/colorui/components/cu-custom.vue'

import uView from "uview-ui";
Vue.use(uView);

Vue.component('cu-custom',cuCustom)
Vue.prototype.$http = http
Vue.prototype.$downloadTask=null
Vue.config.productionTip = false

Vue.prototype.App = new Vue({
	baseUrl: 'http://o.d.gdatacloud.com/scene',
	userInfo: null,
	globalData: {
		header: {
			Cookie: '',
			'content-type': 'application/json'
		},
		promise: null
	},
	setGlobalUserInfo: function(user) {
		uni.setStorageSync("userInfo", user)
	},
	getGlobalUserInfo: function() {
		return uni.getStorageSync("userInfo")
	},
	setGlobalProjectInfo: function(user) {
		uni.setStorageSync("ProjectInfo", user)
	},
	getGlobalProjectInfo: function() {
		return uni.getStorageSync("ProjectInfo")
	}
}),
// 锁定屏幕方向
// plus.screen.lockOrientation('portrait-primary'); //锁定

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
